<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>

<div id="app">
    {{ message }}
</div>
<div id="body">
    {{ message }}
</div>
<div id="app-2">
  <span v-bind:title="message">
    鼠标悬停几秒钟查看此处动态绑定的提示信息！
  </span>

</div>
<div id="app-3">
    <p >{{message}}</p>
    <button v-on:click="clickmy" >点我看看</button>
</div>

<script>
    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!'
        }
    })
    var body=new Vue({
        el:"#body",
        data:{
            message:"body"
        }
    })

    var app2 = new Vue({
        el: '#app-2',
        data: {
            message: '页面加载于 ' + new Date().toLocaleString()
        }
    })

    var app3= new Vue({
        el:"#app-3",
        data:{
            message:"hello fighting"
        },
        methods:{
            clickmy:function(){
                this.message = "hehe"
            }
        }
    })

</script>
</body>
</html>